Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[flang][runtime] Underflow real input to -0. when negative #82443

Merged
merged 1 commit into from
Mar 1, 2024

Conversation

klausler
Copy link
Contributor

When the result of real input editing underflows to zero, return -0. when the input field had a minus sign.

When the result of real input editing underflows to zero, return
-0. when the input field had a minus sign.
@llvmbot llvmbot added the flang Flang issues not falling into any other category label Feb 21, 2024
@klausler klausler merged commit 4762c65 into llvm:main Mar 1, 2024
6 checks passed
@klausler klausler deleted the bug1455 branch March 1, 2024 22:15
luporl added a commit to luporl/llvm-project that referenced this pull request Mar 8, 2024
Select POSIX 2008 standard to avoid including Darwin extensions.
Otherwise, Darwin's math.h header defines HUGE, which conflicts
with Flang's HUGE function.

This is a temporary build fix. More permanent solutions would be to
rename Flang's HUGE or to define _POSIX_C_SOURCE for Flang as a
whole.

This started happening after 4762c65 (llvm#82443), that added the
"utility" include, which seems to include "math.h".
luporl added a commit to luporl/llvm-project that referenced this pull request Mar 8, 2024
Select POSIX 2008 standard to avoid including Darwin extensions.
Otherwise, Darwin's math.h header defines HUGE, which conflicts
with Flang's HUGE function.

This started happening after 4762c65 (llvm#82443), that added the
"utility" include, which seems to include "math.h".
luporl added a commit that referenced this pull request Mar 11, 2024
Select POSIX 2008 standard to avoid including Darwin extensions.
Otherwise, Darwin's math.h header defines HUGE, which conflicts
with Flang's HUGE function.

This started happening after 4762c65 (#82443), that added the
"utility" include, which seems to include "math.h".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flang Flang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants